package com.gree.auth.service.impl;

import com.gree.auth.service.SysUserExService;
import com.gree.common.service.impl.BaseServiceImpl;
import com.gree.framework.entity.SysUserEx;
import org.nutz.dao.Cnd;
import org.nutz.dao.Dao;
import org.springframework.stereotype.Service;

/**
 * Created by 180686 on 2021/3/17 9:37
 */

@Service
public class SysUserExServiceImpl extends BaseServiceImpl<SysUserEx> implements SysUserExService {
    public SysUserExServiceImpl(Dao dao) {
        super(dao);
    }

    @Override
    public SysUserEx findByUserName(String userName) {
        SysUserEx sysUserEx = this.fetch(Cnd.where("userName","=",userName));
        return sysUserEx;
    }
}

